#include "IOUnit.h"




void IOUnit::writeToFile(char* filename, char* data, int size)
{
	pOFile.open(filename, std::ofstream::out);

	pOFile.write(data, size);

	pObuf = pOFile.rdbuf();

	pOFile.close();

}


void IOUnit::readFromFile(char* filename)
{
	pIFile.open("output.txt");
	pIFile.get(inputString, 100);
	pIFile.close();
}